import { IsNumber, IsString } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
export class CreateNoteDto {
  @ApiProperty({ description: '标题', example: '标题1' })
  @IsString()
  readonly title: string;
  @ApiProperty({ description: '内容', example: '内容1' })
  @IsString()
  readonly content: string;
  @ApiProperty({ description: '用户id', example: 1 })
  @IsNumber()
  readonly userId: number;
  @ApiProperty({ description: '标签', example: ['标签1', '标签2'] })
  readonly tagName: Array<string>;
  //文件id
  @ApiProperty({ description: '文件id', example: [1, 2] })
  readonly fileIds: Array<number>;
}
